Example C: Integration Server + storage | Gateway Service + cache | Caching Server + storage + cache
In this example there is a ProjectWise Integration Server, a ProjectWise Gateway Service, and a ProjectWise Caching Server. The ProjectWise Integration Server and ProjectWise Caching Server each have their own storage area. As in the previous examples there are two sets of ProjectWise Explorer users: userA, userB, userC, and userD are local to the ProjectWise Gateway Service, and userE, userF, userG, and userH are local to the ProjectWise Caching Server. On the ProjectWise Gateway Service it is already configured that all communication between userA, userB, userC, and userD will be routed through the ProjectWise Gateway Service.
The goal of this example is to enable caching on the ProjectWise Gateway Service and the ProjectWise Caching Server, so that userA, userB, userC, and userD get all remote files from the cache on their local ProjectWise Gateway Service, and so that userE, userF, userG, and userH get all remote files from the cache on their local ProjectWise Caching Server.
Gateway Service Configuration for Example C
- When you enable file
caching on a
ProjectWise Gateway Service, you are using the
ProjectWise Gateway Service in
ProjectWise Caching Server mode. Therefore in this
example you need to uncomment the following line in the
ProjectWise Gateway Service's
DMSKRNL.CFG
file:
FileTransferSrv=1
Remember that you also need to purchase a ProjectWise Caching Server license when using the ProjectWise Gateway Service in ProjectWise Caching Server mode.
- If not done so already,
uncomment the following line in the
ProjectWise Gateway Service's
DMSKRNL.CFG
file.
ConnectionSrv=1
- Datasource list
publishing settings
The following lines make it possible for userA, userB, userC, and userD, all of whom in this example are within the same subnetwork as the ProjectWise Gateway Service, to see all of the ProjectWise Integration Server's datasources automatically when they open ProjectWise Explorer (removing the need for these users to establish a TCP connection to the ProjectWise Integration Server through the ProjectWise Network Configuration utility in their Control Panel).
Databases=db0 [db0] DsServer=1 Server=INTSERVER
If your ProjectWise Gateway Service is already used as a datasource list publisher, you would have already configured this section. If not, use the above section as an example of how to configure it in your ProjectWise Gateway Service's DMSKRNL.CFG file.
The line Server= is where you specify the computer name or IP address of the ProjectWise Integration Server. In this example, we are using the ProjectWise Integration Server's computer name INTSERVER.
- The [Cache] section in
the
ProjectWise Gateway Service's
DMSKRNL.CFG
file tells the
ProjectWise Gateway Service to enable caching on this
computer, where to store the files on this computer, and how much space the
cache can take up before it gets purged.
[Cache] Enabled=true ;Servers= StoragePath=d:\cacheroot Limit=200
- Information in the
[Gateway] section in the
ProjectWise Gateway Service's
DMSKRNL.CFG
file is echoed to userA, userB, userC, and userD, and instructs any of those
users who happen to be checking out or copying out files located on either the
ProjectWise Integration Server or the
ProjectWise Caching Server, to instead get the files
from the cache on the local
ProjectWise Gateway Service.
[Gateway] INTSERVER=PGS[Allow(userA,userB,userC,userD)] PCS=PGS[Allow(userA,userB,userC,userD)]
The lines INTSERVER=PGS[Allow(userA,userB,userC,userD)] and PCS=PGS[Allow(userA,userB,userC,userD)] tell the users listed that those file requests which would have gone to the ProjectWise Integration Server (INTSERVER) or to the ProjectWise Caching Server (PCS), respectively, will instead be redirected to the ProjectWise Gateway Service (PGS). So when one of those users checks out a file stored on either the ProjectWise Integration Server or the ProjectWise Caching Server, that user will instead be getting the file from cache on the local ProjectWise Gateway Service. Since [Gateway] information is echoed to all clients connected to the ProjectWise Gateway Service, the [Allow(userA,userB,userC,userD)] portion of each line ensures that only those users listed will be redirected to PGS when making requests to INTSERVER or PCS.
Tip: The only users connected to the ProjectWise Gateway Service in this example are userA, userB, userC, userD, therefore, in this example, it is not necessary to add [Allow(userA,userB,userC,userD)] to each line in the [Gateway] section. Though you could leave it out for this example, it is recommended that you always configure the Allow portion, since you may not have control or may not always know when other users are attempting to connect to this server. - The [Routing] section in
the
ProjectWise Gateway Service's
DMSKRNL.CFG
file tells the
ProjectWise Gateway Service where to get files from
when requests are received from clients.
[Routing] INTSERVER=5800 PCS=5800,INTSERVER
In this example, the line INTSERVER=5800 instructs the ProjectWise Gateway Service that when files are requested from the ProjectWise Integration Server (INTSERVER), to get them directly from INTSERVER through port 5800. The line PCS=5800,INTSERVER instructs the ProjectWise Gateway Service that when files are requested from ProjectWise Caching Server (PCS), to forward the request to the ProjectWise Integration Server (INTSERVER) through port 5800. The ProjectWise Integration Server will know what to do with this forwarded request, based on the information you add to the Routing section in the ProjectWise Integration Server's DMSKRNL.CFG file.
Integration Server Configuration for Example C
- Information in the
[Gateway] section in the
ProjectWise Integration Server's
DMSKRNL.CFG
file is echoed to userE, userF, userG, and userH, and instructs any of those
users who happen to be checking out or copying out files located on the
ProjectWise Integration Server, to instead get those files
from the cache on the local
ProjectWise Caching Server.
[Gateway] INTSERVER=PCS[Allow(userE,userF,userG,userH)]
- The [Routing] section in
the
ProjectWise Integration Server's
DMSKRNL.CFG
file tells the
ProjectWise Integration Server where to send file requests
received from the
ProjectWise Gateway Service. In this example, the
ProjectWise Integration Server is the router server
between the
ProjectWise Gateway Service and the
ProjectWise Caching Server.
[Routing] PCS=5800
In this example, when the ProjectWise Gateway Service forwards file requests (bound for the ProjectWise Caching Server) to the ProjectWise Integration Server, the line PCS=5800 tells the ProjectWise Integration Server to retrieve the requested file from the ProjectWise Caching Server.
Caching Server Configuration for Example C
- The [Routing] section
tells
ProjectWise Caching Server where to get files from
when requests are received from clients.
[Routing] INTSERVER=5800
In this example, the line INTSERVER=5800 instructs the ProjectWise Caching Server that when files are requested from the ProjectWise Integration Server (INTSERVER), to get them from INTSERVER through port 5800.
- The [Cache] section in
the
ProjectWise Caching Server's
DMSKRNL.CFG
file tells the
ProjectWise Caching Server to enable caching on this
computer, where to store the files on this computer, and how much space the
cache can take up before it gets purged.
[Cache] Enabled=true ;Servers= StoragePath=d:\cacheroot Limit=200